//package work.mediway.common.configure;
//
//import cn.hutool.core.map.MapUtil;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.core.annotation.Order;
//import org.springframework.jdbc.core.JdbcTemplate;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.PostConstruct;
//
//import java.util.Map;
//
//import static work.mediway.common.domain.constant.VersionConstant.BASE_CODE;
//
///**
// * @author zhongyj <1126834403@qq.com><br/>
// * @date 2023/12/25
// */
//@Component
//@RequiredArgsConstructor
//@Slf4j
//public class VersionConfig {
//
//    private final JdbcTemplate jdbcTemplate;
//
//    public static final String SELECT_VERSION_BY_CODE = "select * from sys_version where `code` = ?";
//    public static final String INSERT_VERSION_BY_CODE = "select * from sys_version where `code` = ?";
//
//    @PostConstruct
//    @Order(Integer.MIN_VALUE)
//    public void initBaseVersion() {
//        Map<String, Object> cdr = this.jdbcTemplate.queryForMap(SELECT_VERSION_BY_CODE, BASE_CODE);
//        if (MapUtil.isEmpty(cdr)) {
//            log.info(">>>>>>>>>>>>>>>>> init cdr version");
//
//        } else {
//
//        }
//    }
//
//}
